package com.yxjx.duoxue;

public class Yx {

	public static final long EXTI_TIMEOUT = 2000;
	public static final String TAG = "YouXue";
	
	// search keywords传到Course Search List中。
	public static final String EXTRA_SEARCH_KEY_WORDS = "EXTRA_SEARCH_KEY_WORDS";
	public static final String DB_NAME = "yxjx.db";
	public static final int DB_VERSION = 4;
	
	// Course list传到 course introduction
	public static final String EXTRA_DM_COURSE = "EXTRA_DM_COURSE";
	// activity list 传到 activity introduction
	public static final String EXTRA_DM_ACTIVITY = "EXTRA_DM_ACTIVITY";
	public static final String EXTRA_DM_ACTIVITY_ID = "EXTRA_DM_ACTIVITY_ID";
	
	protected static final int REQUEST_CODE_LOGIN = 1;
	
	public static final String KEY_SF = "yxjx";
	
	// 记录全局登录状态。
	public static final String KEY_UID = "KEY_UID";
	public static final String KEY_PHONE_NUM = "KEY_PHONE_NUM";
	public static final String KEY_SID = "KEY_SID";
	public static final String KEY_SESSION_KEY = "KEY_SESSION_KEY";
	public static final String KEY_PHONE_PASSWORD = "KEY_PHONE_PASSWORD";
	public static final String KEY_KID_INFO_STRING = "KEY_KID_INFO_STRING";
	// 纪录用户第一次注册登录。
	public static final String KEY_FIRST_TIME_USER_REG = "KEY_FIRST_TIME_USER_REG";
	 
	// 预约课程或者活动
	public static final String KEY_BOOK_TYPE = "KEY_BOOK_TYPE";
	public static final String KEY_BOOK_ITEM_ID = "KEY_BOOK_ITEM_ID";
	public static final String KEY_BOOK_SCHOOL_NAME = "KEY_BOOK_SCHOOL_NAME";
	public static final String KEY_BOOK_ITEM_NAME = "KEY_BOOK_ITEM_NAME";
	public static final int TYPE_ITEM_COURSE = 1;
	public static final int TYPE_ITEM_ACTIVITY = 2;
	public static final int TYPE_ITEM_SCHOOL = 3;

	public static final String KEY_HOME_TAB_INDEX = "KEY_HOME_TAB_INDEX";
	
	// MSG
	public static final int MSG_LOAD_DONE = 3;
	public static final int MSG_EXIT_APP = 4;
	
	// 地图actionbar的标题
	public static final String KEY_PAGE_TITLE = "KEY_PAGE_TITLE";
	
	// 地图
	public static final String KEY_GPS_LAT = "KEY_GPS_LAT";
	public static final String KEY_GPS_LOG = "KEY_GPS_LOG";
	public static final String KEY_GPS_TITLE = "KEY_GPS_TITLE";
	// 多地址
	public static final String KEY_MULTI_LOCATIONS = "KEY_MULTI_LOCATIONS";
	 // 是否时第一次启动
	public static final String KEY_FIRST_BOOTUP = "KEY_FIRST_BOOTUP";
	
	// 找回密码or注册
	public static final String KEY_REG_TYPE = "KEY_REG_TYPE";
	public static final int REG_TYPE_GET_PWD = 1;
	public static final int REG_TYPE_NEW_USER = 2;
	// 未注册用户登录错误跳转到注册页面。
	public static final String EXTRA_USER_PHONE_NUM = "EXTRA_USER_PHONE_NUM";
	public static final String EXTRA_USER_PASSWORD = "EXTRA_USER_PASSWORD";
	
	// 百度SDK获取的当前位置
	public static final String CURRENT_LOCATION = "CURRENT_LOCATION";
	
	// 分享的课程或者活动对象
	public static final String KEY_SHARE_OBJECT = "KEY_SHARE_OBJECT";
	
	//课程，学校，老师，活动等页面的tab分页类型
	public static final int TYPE_H5 = 1;
	public static final int TYPE_SCROLLER = 2;
	
	// H5推广页面传递key
	public static final String KEY_URL = "KEY_URL";
	public static final String KEY_TITLE = "KEY_TITLE";
	
	// 记录用户评分引导的状态：
	// 点评／吐槽／拒绝
	public static final String KEY_GIVE_FIVE_STAR = "KEY_GIVE_FIVE_STAR";
	public static final String KEY_COMMENT_BAD = "KEY_COMMENT_BAD";
	public static final String KEY_REJECT = "KEY_REJECT";
	// 预约，购买，点评或超过5次打开。
	public static final String KEY_HAS_APPOINT_OR_BUY_OR_COMMENT = "KEY_HAS_APPOINT_OR_BUY_OR_COMMENT";
	public static final String KEY_LAST_REJECT_VERSION = "KEY_LAST_REJECT_VERSION";
	public static final String KEY_OPEN_APP_TIMES = "KEY_OPEN_APP_TIMES";
	
	// 商品
	public static final String KEY_PRODUCT_OBJECT = "KEY_PRODUCT_OBJECT";
	public static final String KEY_PRODUCT_ID = "KEY_PRODUCT_ID";
	public static final String KEY_ORDER_OBJECT = "KEY_ORDER_OBJECT";
	public static final String KEY_ORDER_ID = "KEY_ORDER_ID";
	
	//购买相关
	public static final int REQ_ORDER_PRODUCT = 1; // 已经下过订单（则finish前面的页面）
	public static final int REQ_CODE_LOGIN_FOR_BUY = 2; //为购买而登录
	
	public static final String KEY_COURSE_OBJECT = "KEY_COURSE_OBJECT";
	public static final String KEY_PUSH_EXTRA_CUSTOM = "KEY_PUSH_EXTRA_CUSTOM";
	// 代金券
	public static final String EXTRA_COUPON_OBJECT = "EXTRA_COUPON_OBJECT";
	public static final String EXTRA_COUPON_LIST = "EXTRA_COUPON_LIST";
	
	// 导航
	public static final String EXTRA_NAV_START = "EXTRA_NAV_START";
	public static final String EXTRA_NAV_END = "EXTRA_NAV_END";
	// 机构Ad页面
	public static final String EXTRA_AD_OBJECT = "EXTRA_AD_OBJECT";
	
	// start 页面打开方式,用于MTA验证入口打开的效率
	public static final String KEY_OPEN_BY = "KEY_OPEN_BY";
	public static final String VALUE_OPEN_BY_AD_CLICK = "event_home_ad_click";
	public static final String VALUE_OPEN_BY_REF_COURSE = "event_home_ref_course_click";
	// end
}
